package com.bluemoon.bmwalk.common.jacoco.dto;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;
/**
 * @description: 类信息.
 * @author: liaozhioyng
 * @create: 2023-09-13
 */
@Data
public class Clazz {

    private String name;

    private String sourcefilename;

    private final List<Method> methods = new ArrayList<>();

    private final List<Counter> clazzCounters = new ArrayList<>();

    private Coverage clazzCoverage;

    public void addMethod(Method method) {
        methods.add(method);
    }

    public void addCounter(Counter counter) {
        clazzCounters.add(counter);
    }

}